{extend name="Public:base"/}

{block name="main"}
<div class="box-info">

    <div class="table-toolbar">
        <div class="row">
            <div class="col-md-12">
                <a class="btn btn-primary" href="{:U('Digitalmap/add')}">新增</a>
            </div>
        </div>
    </div>

    <div class="row table-container">
        <div class="col-md-12">
            <form name="myform" id="myform" method="post">
                <table class="table table-hover table-bordered">
                    <thead>
                    <tr>
                        <th width="20"><input type="checkbox" value="" id="check_box" onclick="selectall('ids[]');"></th>
                        <th width="40">ID</th>
                        <th>名称</th>
                        <th>电话</th>
                        <th>地址</th>
                        <th>传真</th>
                        <th>邮编</th>
                        <th>邮箱</th>
                        <th class="table-cell-2 center">管理操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {empty name="list"}
                    <tr class="table-data-empty">
                        <td class="text-center empty-info" colspan="8">
                            <i class="fa fa-database"></i> 暂无数据<br>
                        </td>
                    </tr>
                    {else/}
                    {volist name="list" id="vo" key="k"}
                    <tr>
                        <td width="20" align="center">
                            <input class="inputcheckbox" name="ids[]" value="{$vo['id']}" type="checkbox">
                        </td>
                        <td>{$vo['id']}</td>
                        <td>{$vo['name']}</td>
                        <td>{$vo['tel']}</td>
                        <td>{$vo['address']}</td>
                        <td>{$vo['fax']}</td>
                        <td>{$vo['zipcode']}</td>
                        <td>{$vo['email']}</td>
                        <td class="table-cell-2 center">
                            <a class="btn btn-sm btn-primary" href="{:U('Digitalmap/edit',array('id'=>$vo['id']))}">编辑</a>
                            <a class="btn btn-sm btn-danger" href="javascript:confirm_delete('{:U('Digitalmap/delete',array('id'=>$vo['id']))}')">删除</a>
                        </td>
                    </tr>
                    {/volist}
                    {/empty}
                    </tbody>
                </table>
            </form>
        </div>
    </div>
    <div class="pagination">{$page}</div>
</div>
{/block}